package com.learn.tuling.spring.spring01.service.impl;

import com.learn.tuling.spring.spring01.dao.IUserDao;
import com.learn.tuling.spring.spring01.dao.impl.UserDaoImpl;
import com.learn.tuling.spring.spring01.service.IUserService;

public class UserServiceImpl implements IUserService {


    /**
     * todo
     *  如果从mysql数据库改为oracle数据库，要修改代码 耦合度太高
     */

    IUserDao userDao = new UserDaoImpl();

    @Override
    public void getUser() {
        userDao.getUser();
    }
}
